package scanner;

/**
 * @author shkstart
 * @date 2022/4/6 - 21:49
 */
/*
从键盘获取不同类型变量:需要使用Scanner类

具体实现步骤:
1.导包: import java.util.Scanner;
2.Scanner的实例化:Scanner scan = new Scanner(System.in);
3.调用Scanner类的相关方法,来获取指定类型变量;

* */
import java.util.Scanner;

public class ScannerTest {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);

        int num = scan.nextInt();
        System.out.println(num);

    }
}
